// 教室管理
import { axios } from '@/utils/request'
export function classroomList(params) {
    return axios({
        url: '/school/classrooms',
        method: 'post',
        data: params
    })
}



export function addClassroom(params) {
    return axios({
        url: '/school/classrooms/batch-add',
        method: 'post',
        data: params
    })
}
// export function changeClassroomType(params, id) {
//     return axios({
//         url: '/school/classrooms/' + id + '/enable-status',
//         method: 'post',
//         data: params
//     })
// }

export function delClassroom(params) {
    return axios({
        url: '/school/classrooms/batch-delete',
        method: 'post',
        data: params
    })
}
export function changeClassroom(params, id) {
    return axios({
        url: '/school/classrooms/' + id + '/update',
        method: 'post',
        data: params
    })
}

